package mythread.demo001;

public class MyThread14Test extends Thread {

    public static void main(String[] args) {
        try {
            MyThread14 myThread14 = new MyThread14();
            myThread14.start();
            Thread.sleep(5000);

            myThread14.suspend();
            System.out.println("A="+ System.currentTimeMillis()+",i-"+myThread14.getI());
            Thread.sleep(5000);
            System.out.println("A="+ System.currentTimeMillis()+",-i"+myThread14.getI());


            myThread14.resume();
            Thread.sleep(5000);

            myThread14.suspend();
            System.out.println("C="+ System.currentTimeMillis()+",i="+myThread14.getI());
            Thread.sleep(5000);
            System.out.println("C="+ System.currentTimeMillis()+",i="+myThread14.getI());



        } catch (InterruptedException e) {
            e.printStackTrace();
        }
    }
}
